package net.jjjshop.front.mapper.lbt;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.jjjshop.common.entity.lbt.LbVersionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 */
@Mapper
public interface LbVersionMapper extends BaseMapper<LbVersionEntity> {

    @Select("SELECT * FROM lb_version WHERE type = #{type} ORDER BY id DESC limit 1")
    LbVersionEntity selectVersion(Integer type);
}
